// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'LocationId',
        footer: "Foots",
        cnName: '仓位',
        name: 'Location',
        newTabEdit: false,
        url: "/Location/",
        sortName: "LocationId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"Code":"","Name":"","SpecificLocation":"","Remark":""};
    const editFormOptions = [[{"title":"仓位编码","required":true,"field":"Code","type":"text"}],
                              [{"title":"仓位名称","required":true,"field":"Name","type":"text"}],
                              [{"title":"位置","field":"SpecificLocation","type":"text"}],
                              [{"title":"备注","field":"Remark","type":"text"}]];
    const searchFormFields = {"Code":"","Name":""};
    const searchFormOptions = [[{"title":"仓位编码","field":"Code","type":"like"},{"title":"仓位名称","field":"Name","type":"like"}]];
    const columns = [{field:'LocationId',title:'仓位标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'StockId',title:'仓库标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'Code',title:'仓位编码',type:'string',link:true,width:110,require:true,align:'left'},
                       {field:'Name',title:'仓位名称',type:'string',width:110,require:true,align:'left'},
                       {field:'SpecificLocation',title:'位置',type:'string',width:120,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:120,align:'left'},
                       {field:'IsEnabled',title:'是否启用',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'},
                       {field:'ExternalDataId',title:'三分对接标识',type:'string',width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}